public class PhoneDirector {
private  PhoneBuilder builder;
public  PhoneDirector(PhoneBuilder concretebuilder){
    this.builder=concretebuilder;
}
public Phone constructPhone(){
    this.builder.buildspeaker();
    this.builder.buildscpu();
    this.builder.buildscreen();
    return this.builder.getPhone();
}
public  void  setBuilder(PhoneBuilder builder){
    this.builder=builder;
}
}
